package com.insurance.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 合作方角色关系表
 * 
 * @date 2021-02-27 22:53:04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("partner_info_role")
public class PartnerInfoRoleEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * $column.comments
	 */
	@TableId
	private String irId;
	/**
	 * $column.comments
	 */
	private String partnerId;
	/**
	 * $column.comments
	 */
	private String roleId;

	@TableField(exist=false)
	private String irIdText;

	public String getIrIdText() {
		return this.irId != null ? String.valueOf(this.irId) : "";
	}

	public PartnerInfoRoleEntity(String partnerId, String roleId){
		this.partnerId = partnerId;
		this.roleId = roleId;
	}

}
